Skip to content

refactor: static usage of junit extension #2879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Jul 24, 2025

Signed-off-by: Attila Mészáros [email protected]

@openshift-ci openshift-ci bot requested review from metacosm and xstefank July 24, 2025 06:57
@csviri csviri removed the request for review from metacosm July 24, 2025 06:57
@@ -18,7 +18,7 @@ public class PrimaryIndexerIT {
public static final String RESOURCE_NAME1 = "test1";
public static final String RESOURCE_NAME2 = "test2";

@RegisterExtension LocallyRunOperatorExtension operator = buildOperator();
@RegisterExtension LocallyRunOperatorExtension extension = buildOperator();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one not static?

csviri added 2 commits July 24, 2025 09:29
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
@csviri csviri marked this pull request as draft July 24, 2025 07:49
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 24, 2025
@@ -261,6 +263,7 @@ protected void before(ExtensionContext context) {

additionalCustomResourceDefinitions.forEach(this::applyCrd);
for (var ref : reconcilers) {
this.operator = new Operator(configurationServiceOverrider);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be done in the loop as the operator is re-initialized for each reconciler.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @metacosm this is wip, pls ignore the PR while not marked ready

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 6, 2025
@openshift-merge-robot
Copy link

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants